package net.lab1024.sa.admin.module.business.erp.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import lombok.Data;

/**
 * 工单 实体类
 *
 * @Author AKITA
 * @Date 2025-04-19 08:57:48
 * @Copyright AKITA
 */

@Data
@TableName("mmord")
public class MmordEntity {


    @TableId(type = IdType.AUTO)
    private Long docEntry;
    private String itemId;
    private String itemName;
    private String batchId;
    private Long objId;
    private String objName;
    private String docStatus;
    private Long deptId;
    private String deptName;
    private Integer absId;
    private Boolean approved;
    private String remark;
    @Version
    private Integer version;
    @TableField(fill = FieldFill.INSERT)
    private Long createById;
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateById;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private Boolean edit;
    @TableField(exist = false)
    private List<MmordaEntity> lista = new ArrayList<>();
    @TableField(exist = false)
    private List<MmordbEntity> listb = new ArrayList<>();
    @TableField(exist = false)
    private List<AccountbEntity> listc = new ArrayList<>();
    @TableField(exist = false)
    private List<AccountcEntity> listd = new ArrayList<>();
    @TableField(exist = false)
    private BigDecimal workTime = BigDecimal.ZERO;
    @TableField(exist = false)
    private BigDecimal workCost = BigDecimal.ZERO;
    @TableField(exist = false)
    private BigDecimal workOverTime = BigDecimal.ZERO;
    @TableField(exist = false)
    private BigDecimal workOverCost = BigDecimal.ZERO;
}
